﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OOP
{
    class Student
    {
        public static int LastId = 1;

        public Student()
        {
            Id = LastId++;
            FirstName = "";
            LastName = "";
            PhoneNumber = "";
            Email = "";
        }

        public Student(string firstName, string lastName)
        {
            Id = LastId++;
            FirstName = firstName;
            LastName = lastName;
            PhoneNumber = "";
            Email = "";
        }
        public int Id { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string PhoneNumber { get; set; }
        public string Email { get; set; }
    }
}
